<!DOCTYPE html>
<html>
<head>
  <title>Energia Reference - MSP430F5529 LaunchPad Guide</title>
  <link rel="shortcut icon" type="image/x-icon" href="http://energia.nu/favicon.png">
  <link rel='stylesheet' href='energiaWideRender.css' 
type='text/css' />
    <!--HeaderText--><style type='text/css'></style>  
  <meta name='robots' content='index,follow' />
  <meta name="Author" content="Robert Wessels" />
  <meta name="Publisher" content="Energia" />
  <meta name="Keywords" content="Energia, Wiring, Processing, Maker, LaunchPad, Arduino, Texas Instruments, Sketch, MSP430, mspgcc, mpsdebug, Electronic Arts, Programming, C, C++, Robert Wessels" />
  <meta name="Description" content="Energia is a rapid prototyping platform for the Texas Instruments MCU Launchpad. Energia is based on Wiring and Arduino and uses the Processing IDE." />
  <meta name="Copyright" content="All contents copyright Robert Wessels" />
	<script type="text/javascript">

		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-38745548-1']);
		_gaq.push(['_setDomainName', 'energia.nu']);
		_gaq.push(['_trackPageview']);

		(function() {
 			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();

	</script>

</head>
<body>
<div id="page">
  <!--PageHeaderFmt-->
  <div id="pageheader">
    <div class="title"><a href='http://energia.nu'>Energia</a></div>
  </div>
  <!--/PageHeaderFmt-->

  <!--PageLeftFmt-->
  <div id="pagenav">
    <div id="navbar">
  	<p><a class='left' href='http://energia.nu/'>Home</a>
<a class='wikilink' href='http://energia.nu/download'>Download</a>
<a class='wikilink' href='Guide_index.html'>Getting Started</a>
<a class='wikilink' href='Reference_Index.html'>Reference</a>
<a class="wikilink" href="http://energia.nu/help.html">Getting Help</a>
<a class="nav" href="http://energia.nu/faq.html">FAQ</a>
<a class="wikilink" href="http://energia.nu/projects.html">Projects Using Energia</a>
<a class="nav" href="http://energia.nu/contact.html">Contact Us</a>
</p>


<p class='vspace'></p>

    </div>
  </div>
  <!--/PageLeftFmt-->

  <div id="pagetext">
  <!--PageText-->
<div id='wikitext'>
<h2>Guide to the MSP430F5529 Based LaunchPad (MSP-EXP430F5529LP)</h2>
<p>
Pin numbering for the LaunchPad variant in Energia follows the pin numbering of the header on the LaunchPad (see pin mapping diagram below for details). Example: LED1 can be turned on with:
</p>

<pre> pinMode(43, OUTPUT);
 digitalWrite(43, HIGH);
</pre>


<p>Pins can also be address by there alternative names P1_0 ... P1_7 and P2_0 ... P2_5. See Energia/hardware/msp430/variants/launchpad/pins_energia.h for details. The LaunchPad pins_energia.h is <a href="https://github.com/energia/Energia/blob/master/hardware/msp430/variants/launchpad_f5529/pins_energia.h" target="_blank">here</a> on github.
</p>

<pre> pinMode(P1_0, OUTPUT);
 digitalWrite(P1_0, HIGH);
</pre>


<p>LED1, LED2, S1, S2 and internal temp sensor can also be addressed by the alternative names:
</p>

<pre> RED_LED
 GREEN_LED;
 PUSH1;
 PUSH2;
 TEMPSENSOR;
</pre>


<p>To turn on the red LED.
</p>

<pre> pinMode(RED_LED, OUTPUT);
 digitalWrite(RED_LED, HIGH);
</pre>
<p>The following diagrams show the complete pin map for the F5529 LaunchPad in Energia. 
</p>
<h3>MSP430F5529 LaunchPad (MSP-EXP430F5529LP)</h3>
<img src="img/LaunchPadMSP430F5529.jpg" height="461" width="850"><br /></p>


</div>


  </div>

  <!--PageFooterFmt-->
  <div id="pagefooter">
&copy;Energia<!--FOOTER-->
  </div>
  <!--/PageFooterFmt-->

</div>
</body>
</html>
